#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<string>
#include"MyMap.h"
#include"MySet.h"
int main()
{
	celia::MyMap<int, string> m;
	celia::MySet<int> s;
	m.Insert({ 1,"one" });
	m.Insert({ 9,"nine" });
	m.Insert({ 5,"five" });
	m.Insert({ 6,"six" });
	m.Insert({ 2,"two" });
	m[4] = "four";
	m.Insert({ 3,"three" });
	m.Insert({ 7,"seven" });
	celia::MyMap<int, string>::iterator it = m.begin();
	while (it != m.end())
	{
		cout << (*it).first << " " << (*it).second << endl;
		++it;
	}
	/*for (auto x : m)
	{
		cout << x.first << " " << x.second << endl;
	}*/
	cout << "============================================" << endl;
	s.Insert(3);
	s.Insert(8);
	s.Insert(9);
	s.Insert(4);
	s.Insert(1);
	s.Insert(7);
	s.Insert(2);
	s.Insert(5);
	s.Insert(6);
	s.Insert(0);
	/*for (auto x : s)
	{
		cout << x << " ";
	}*/
	celia::MySet<int>::iterator sit = s.begin();
	while (sit != s.end())
	{
		cout << *sit << " ";
		++sit;
	}
	return 0;
}